import { NgModule } from '@angular/core';
import { InfiniteScrollModule } from 'angular2-infinite-scroll';
import { AppComponent } from './app.component';
import { DataService } from './data.service';
import { TestComponent } from './test/index';
import { LiveCoverComponent,LiveListComponent,LiveService,LiveCover} from './live/index'
import {Http, Response, Jsonp, Headers, RequestOptions, JSONP_PROVIDERS, HTTP_PROVIDERS, HTTP_BINDINGS} from '@angular/http';
import { ShowHead } from './show-head.directive';
import { ShowBottom } from './show-bottom.directive';
import {BrowserModule} from '@angular/platform-browser';
 
import { MessageService } from './message.service';
import { routing,appRoutingProviders } from './routers';
// import { MomentModule } from 'angular2-moment';
  import { MomentModule } from 'angular2-moment';
// import {TimeAgoPipe} from 'angular2-moment/TimeAgoPipe.js';
@NgModule({
  imports:[InfiniteScrollModule,BrowserModule,appRoutingProviders,routing,MomentModule],
  declarations:[LiveListComponent,LiveCoverComponent],
  providers: [HTTP_PROVIDERS,DataService,LiveService,appRoutingProviders,LiveCover,MessageService],
  bootstrap:[AppComponent]

})

export class AppModule {
}
